<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/admin";
System.out.println(basePath);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Iooes后台管理系统</title>
<link rel="stylesheet" type="text/css" href="js/tools/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="js/tools/themes/icon.css">
<link rel="stylesheet" type="text/css" href="admin/css/admin.css">
<script type="text/javascript" src="js/tools/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/tools/jquery.easyui.min.js"></script>
<script type="text/javascript" src="admin/js/admin.js"></script>

</head>
<body class="easyui-layout">
 
		<div region="north"  split="false" style="overflow: hidden; height: 30px;
        background: url(../images/layout-browser-hd-bg.gif) #7f99be repeat-x center 50%;
        line-height: 20px;color: #fff; font-family: Verdana, 微软雅黑,黑体">
			<span style="float:right; padding-right:20px;" class="head">欢迎 <s:property value="#session.user.email"/> 
			<a href="javascript:addTab('修改密码','admin/user/modifypassword.html','modifypassword');"  >修改密码</a> 
			<s:if test="#session.user.level==1 || #session.user.level==5 || #session.user.level==6 || #session.user.level==7 || #session.user.level==8">
			    <a href="welcome.jsp" >返回主页</a>
			</s:if>
			<s:elseif test="#session.user.level==2">
			   <a href="user!singleUserPage.action?userId=<s:property value="#session.user.id"/>" >返回个人主页</a>
			 </s:elseif>
			<s:elseif test="#session.user.level==3">
			    <a href="user!groupbyUserPage.action?currentPage=1&userId=<s:property value="#session.user.id"/>" >返回个人主页</a>
			</s:elseif>
			<s:elseif test="#session.user.level==4">
			  <a href="user/user!brandUserPage.action?currentPage=1&userId=<s:property value="#session.user.id"/>" >返回个人主页</a>
			</s:elseif>
			<a href="user!loginOut.action" id="loginOut">安全退出</a>
			</span>
        <span style="padding-left:10px; font-size: 16px; "><img src="images/blocks.gif" width="20" height="20" align="absmiddle" /> Iooes后台管理系统</span>
		</div>
		<div region="west" split="false" title="菜单" style="width:200px;padding1:1px;overflow:hidden;">
			<div class="easyui-accordion" fit="true" border="false">
			    <s:if test="#session.user.level==1 ">
				<div title="系统设置" style="overflow:auto;">
				   <ul class="menulist">
						<li><div><a href="system.action?id=1&flag=0" target="system">网站栏目设置</a></div></li>
						<li><div><a href="admin/system/clumnManage.html" target="system">网站栏目管理</a></div></li>
						<li><div><a href="admin/systeminfor!systemInfor.action" target="systeminfor">网站基本信息设置</a></div></li>
						<li><div><a href="admin/system/ad.jsp" target="ad">广告位管理</a></div></li>
					</ul>
				
				</div>
				</s:if>
				<div title="用户管理" style="padding:10px;">
					<ul class="menulist">
					   <s:if test="#session.user.level==1 || #session.user.level==5 || #session.user.level==6 || #session.user.level==7 || #session.user.level==8">
					      <li><div><a href="admin/user/userList.html" target="userList">用户列表</a></div></li>
					      <li><div><a href="admin/user/recommendUser.html" target="modifypassword">推荐用户</a></div></li>
					      <li><div><a href="admin/user/modifyEmail.jsp" target="modifypassword">修改登录邮箱</a></div></li>
					      <li><div><a href="admin/user/modifypassword.html" target="modifypassword">密码修改</a></div></li>
					       <li><div><a href="admin/user/addManager.html" target="modifypassword">添加管理人员</a></div></li>
					       <li><div><a href="admin/user/adduser.html" target="adduser">添加用户</a></div></li>
					       <li><div><a href="admin/brand/addBrandUserCategory.html" target="addBrandUserCategory">品牌用户类型</a></div></li>
					       <li><div><a href="admin/brand/addBrandCategory.html" target="addBrandCategory">品牌资讯类型</a></div></li>
					      <li><div><a href="welcome.jsp" >返回个人主页</a></div></li>
					   </s:if>
					   <s:elseif test="#session.user.level==2">
					      <li><div><a href="user!getSingleUser.action" target="getSingleUser">用户信息设置</a></div></li>
					      <li><div><a href="admin/user/modifyEmail.jsp" target="modifypassword">修改登录邮箱</a></div></li>
						  <li><div><a href="admin/user/modifypassword.html" target="modifypassword">密码修改</a></div></li>
						  <li><div><a href="user!singleUserPage.action?userId=<s:property value="#session.user.id"/>" >返回个人主页</a></div></li>
					   </s:elseif>
					   <s:elseif test="#session.user.level==3">
					      <li><div><a href="user!getSingleUser.action" target="getSingleUser">用户信息设置</a></div></li>
					      <li><div><a href="admin/user/modifyEmail.jsp" target="modifypassword">修改登录邮箱</a></div></li>
						  <li><div><a href="admin/user/modifypassword.html" target="modifypassword">密码修改</a></div></li>
						  <li><div><a href="user!groupbyUserPage.action?currentPage=1&userId=<s:property value="#session.user.id"/>" >返回个人主页</a></div></li>
					   </s:elseif>
					   <s:elseif test="#session.user.level==4">
					      <li><div><a href="user!getSingleUser.action" target="getSingleUser">用户信息设置</a></div></li>
					      <li><div><a href="admin/user/modifyEmail.jsp" target="modifypassword">修改登录邮箱</a></div></li>
						  <li><div><a href="admin/user/modifypassword.html" target="modifypassword">密码修改</a></div></li>
						 
						  <li><div><a href="user/user!brandUserPage.action?currentPage=1&userId=<s:property value="#session.user.id"/>" >返回个人主页</a></div></li>
					   </s:elseif>
					</ul>
				</div>
				<s:if test="#session.user.level==1 || #session.user.level==5 || #session.user.level==6 || #session.user.level==7 || #session.user.level==8">
				<div title="团购管理" selected="true" >
					<ul class="menulist">
						<li><div><a href="admin/groupby/groupbyManage.html" target="groupbyManage">团购列表</a></div></li>
						<li><div><a href="admin/groupby/addGroupbyCategory.html" target="addGroupbyCategory">团购类型</a></div></li>
						<li><div><a href="admin/dic!getProvinceCity.action" target="groupbyCity">团购城市管理</a></div></li>
						<li><div><a href="admin/user!getTagsList.action" target="getTagsList">团购关键词</a></div></li>
					</ul>
				</div>
				</s:if>
				<s:if test="#session.user.level==4 || #session.user.level==1 || #session.user.level==5 || #session.user.level==6 || #session.user.level==7 || #session.user.level==8">
				<div title="品牌管理" selected="true" >
					<ul class="menulist">
						<li><div><a href="admin/brand/addPictures.jsp" target="addPictures">添加相册</a></div></li>
						  <li><div><a href="admin/brand/picturesList.html" target="picturesList">相册列表</a></div></li>
						  <li><div><a href="admin/brand/uploadPhoto.jsp" target="uploadPhoto">上传图片</a></div></li>
						  <li><div><a href="admin/brand/addBrand.jsp" target="addBrand">添加资讯</a></div></li>
						   <li><div><a href="admin/brand/brandmanage.html" target="brandmanage">资讯管理</a></div></li>
						   <li><div><a href="admin/brand/addTopic.jsp?userId=<s:property value="#session.user.id"/>" target="addTopic">添加话题</a></div></li>
						    <li><div><a href="admin/brand/topicList.html" target="topicList">话题管理</a></div></li>
					</ul>
				</div>
				</s:if>
			</div>
		</div>
		<div region="center" id="mainPanle" style="overflow:hidden;">
				<div id="tabs" class="easyui-tabs"  fit="true" border="false" ></div>	
		</div>
</body>
</html>